<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<div class="modal-dialog x-modal-dialog" style="width:600px; margin-top: 150px;">

  <div class="modal-content">

    <div class="modal-header x-breadcrumb no-bottom-border clearfix">

      <h2><i class="glyphicon glyphicon-fire" title="发送课件"></i>&nbsp;&nbsp;发送课件</h2>

      <button type="button" class="close" data-dismiss="modal">&times;</button>

    </div>

    <form class="form-horizontal" method="POST" action="${ctx.host}/online-rounds/${roundCode}/batch-link"  data-validate="true">

      <input type="hidden" name="_method" value="PATCH">
      <input type="hidden" name="groupName" value="${groupName}">
      <div class="modal-body">
        <div class="form-group x-form-group">
          <label class="col-xs-3 control-label">周数</label>
          <div class="pull-left col-xs-7">
            <select name="week" class="form-control" data-validate="required">
              <option></option>
              <option value="0">预热期</option>
              <option value="1">第一周</option>
              <option value="2">第二周</option>
              <option value="3">第三周</option>
              <option value="4">第四周</option>
              <option value="5">第五周</option>
              <option value="6">第六周</option>
            </select>
          </div>
        </div>
        
        <div class="form-group x-form-group">
          <label class="col-xs-3 control-label">教练Tips</label>
          <div class="pull-left col-xs-7">
            <textarea name="coachTips" rows="3" class="form-control" placeholder="请输入Tips" data-validate="required"></textarea>
          </div>
        </div>
        
      </div>

      <div class="modal-footer clearfix">
        <button type="submit" class="btn btn-success btn-shadow btn-shadow-success x-btn">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" class="btn btn-default btn-shadow btn-shadow-default x-btn" data-dismiss="modal">取消</button>
      </div>
    </form>

  </div>

</div>

<script type="text/javascript">
  $('select[name="week"]').select2({
    placeholder : '请选择周数',
    minimumResultsForSearch : 5,
    allowClear : false,
  });
</script>